package com.ruoyi.im.domain;

import com.ruoyi.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 用户群管理表 im_user_group
 *
 * @author ruoyi
 * @date 2018-11-06
 */
public class UserGroup extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;
    /**
     * 群名称
     */
    private String groupName;
    /**
     * 群头像
     */
    private String groupLogo;
    /**
     * 群备注
     */
    private String groupRemarks;
    /**
     * 创建时间
     */
    private String addTime;

    private Long userId;//用户id

    private Long groupNumber;//群号

    private Integer groupSetting;//加群设置

    private List<User> userList;//群成员列表
    private Integer disturb;//消息勿扰（1：是2：否）

    private Integer userCount;//群成员数量

    private String groupPlace;//群地点

    private String type; // 类型
    private String cost;    // 花费
    private String longitude; // 经度
    private String latitude;    // 纬度
    private String distance;    // 距离
    private String limit;    // 群上限

    private String groupNickName;//用户成员昵称
    private String groupingName;//所在分组

    public String getGroupNickName() {
        return groupNickName;
    }

    public void setGroupNickName(String groupNickName) {
        this.groupNickName = groupNickName;
    }

    public String getGroupingName() {
        return groupingName;
    }

    public void setGroupingName(String groupingName) {
        this.groupingName = groupingName;
    }

    public String getGroupPlace() {
        return groupPlace;
    }

    public void setGroupPlace(String groupPlace) {
        this.groupPlace = groupPlace;
    }

    public Integer getUserCount() {
        return userCount;
    }

    public void setUserCount(Integer userCount) {
        this.userCount = userCount;
    }

    public Integer getDisturb() {
        return disturb;
    }

    public void setDisturb(Integer disturb) {
        this.disturb = disturb;
    }

    public Integer getGroupSetting() {
        return groupSetting;
    }

    public void setGroupSetting(Integer groupSetting) {
        this.groupSetting = groupSetting;
    }

    public List<User> getUserList() {
        return userList;
    }

    public void setUserList(List<User> userList) {
        this.userList = userList;
    }

    public Long getGroupNumber() {
        return groupNumber;
    }

    public void setGroupNumber(Long groupNumber) {
        this.groupNumber = groupNumber;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupLogo(String groupLogo) {
        this.groupLogo = groupLogo;
    }

    public String getGroupLogo() {
        return groupLogo;
    }

    public void setGroupRemarks(String groupRemarks) {
        this.groupRemarks = groupRemarks;
    }

    public String getGroupRemarks() {
        return groupRemarks;
    }

    public void setAddTime(String addTime) {
        this.addTime = addTime;
    }

    public String getAddTime() {
        return addTime;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCost() {
        return cost;
    }

    public void setCost(String cost) {
        this.cost = cost;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    public String getLimit() {
        return limit;
    }

    public void setLimit(String limit) {
        this.limit = limit;
    }

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("groupName", getGroupName())
                .append("groupLogo", getGroupLogo())
                .append("groupRemarks", getGroupRemarks())
                .append("addTime", getAddTime())
                .toString();
    }
}
